<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/base.css" />
<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/home.css" />
<title>图书库存管理系统</title>
</head>

<body>
<div class="article toolbar">
	<div class="title ue-clear">
    	<h2>常用操作</h2>
        <a href="javascript:;" class="more">更多</a>
    </div>
    <div class="content">
    	<ul class="toollist ue-clear">
			<li>
            	<a href="{:U('index/cleandata')}" class="img"><img src="__TMPL__Public/assets/book_static/images/icon09.png" /></a>
                <p><a href="javascript:;">库存整理</a></p>
            </li>
            <li>
            	<a href="{:U('index/ruku')}" class="img"><img src="__TMPL__Public/assets/book_static/images/icon05.png" /></a>
                <p><a href="javascript:;">批量入库</a></p>
            </li>
            <li>
            	<a href="{:U('index/chuku')}" class="img"><img src="__TMPL__Public/assets/book_static/images/icon02.png" /></a>
                <p><a href="javascript:;">批量出库</a></p>
            </li>
			<li>
            	<a href="{:U('index/printlist')}" class="img"><img src="__TMPL__Public/assets/book_static/images/icon10.png" /></a>
                <p><a href="{:U('index/printlist')}">出库打印</a></p>
            </li>
    		<li>
            	<a href="{:U('index/list_book')}" class="img"><img src="__TMPL__Public/assets/book_static/images/icon01.png" /></a>
                <p><a href="{:U('index/list_book')}">图书维护</a></p>
            </li>
			<li>
            	<a href="{:U('index/list_book_output')}" onclick="layer.load(0, {shade: 0.1});" class="img"><img src="__TMPL__Public/assets/book_static/images/icon11.png" /></a>
                <p><a href="javascript:;">库存导出</a></p>
            </li>
            <li>
            	<a href="{:U('index/modifypwd')}" class="img"><img src="__TMPL__Public/assets/book_static/images/icon03.png" /></a>
                <p><a href="{:U('index/modifypwd')}">密码修改</a></p>
            </li>
			<!--
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon08.png" /></a>
                <p><a href="javascript:;">回收站</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon04.png" /></a>
                <p><a href="javascript:;">价格维护</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="images/icon06.png" /></a>
                <p><a href="javascript:;">网络硬盘</a></p>
            </li>
            <li>
            	<a href="javascript:;" class="img"><img src="__TMPL__Public/assets/book_static/images/icon09.png" /></a>
                <p><a href="javascript:;">系统配置</a></p>
            </li>
            <li class="add-btn">
            	<img src="__TMPL__Public/assets/book_static/images/add.png" />
            </li>
			-->
    	</ul>
        
    </div>
</div>
<div class="article half notice">
	<div class="wrap-l">
        <div class="title ue-clear">
            <h2>库存提示</h2>
            <a href="javascript:;" class="more">更多</a>
        </div>
        <div class="content">
        	<ul class="notice-list">
            	<li class="ue-clear">
                	<a href="javascript:;" class="notice-title">功能点:半年未出库过的图书报警</a>
                    <div class="notice-time">05-08</div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="article half matter">
	<div class="wrap-r">
        <div class="title ue-clear">
            <h2 class="title-list">
                <ul class="ue-clear">
                    <li class="current"><a href="javascript:;">数据统计</a></li>
                </ul>
            </h2>
            <a href="javascript:;" class="more">更多</a>
        </div>
        <div class="content">
        	<div class="matter-content current ue-clear">
            	<div class="today">
					<p class="year"><SCRIPT>  
					   var d = new Date();  
					  document.write(d.getFullYear() + "年" +(d.getMonth() + 1) + "月" );  
					 </SCRIPT></p>
					<p class="date"><SCRIPT>  
					   var d = new Date();  
					  document.write(d.getDate());  
					 </SCRIPT></p>
                </div>
                <div class="matter-list">
					<ul class="bookdata">

						<li class="bookdata-item">
						<div class="total">
						{$data.yesterdayin}			本</div>
						<p class="name">昨日入库</p>
						</li>
						<li class="bookdata-item">
						<div class="total2">
						{$data.yesterdayout}			本</div>
						<p class="name">昨日出库</p>
						</li>
						
						<li class="bookdata-item">
						<div class="this-week">
						{$data.todayin}			本</div>
						<p class="name">今日入库</p>
						</li>

						<li class="bookdata-item">
						<div class="last-week">
						{$data.todayout}			本</div>
						<p class="name">今日出库</p>
						</li>
					</ul>
                </div>
            </div>
			<style type="text/css">
				.this-week { background-image: url(__TMPL__Public/assets/book_static/images/tj_orange.png); color: #faae59; }
				.last-week { background-image: url(__TMPL__Public/assets/book_static/images/tj_blue.png); color: #55c6fe; }
				.total { background-image: url(__TMPL__Public/assets/book_static/images/tj_green.png); color: #93c25f; }
				.total2 { background-image: url(__TMPL__Public/assets/book_static/images/tj_sys.png); color: #93c25f; }
				.bookdata {
					height:140px;
					overflow: hidden;
				}
				.bookdata-item {
				  float: left;
				  text-align: center;
				  font-size: 18px;
				  margin: 5px 10px;
				}

				.bookdata-item>div {
				  width: 98px;
				  height: 98px;
				  line-height: 98px;
				}

				.bookdata-item .name {
				  line-height: 30px;
				  font-size:12px;
				}
			</style>
            
        </div>
    </div>
</div>
<div class="article half duty">
	<div class="wrap-l">
        <div class="title ue-clear">
            <h2>最新入库</h2>
            <a href="javascript:;" class="more">更多</a>
        </div>
        <div class="content" style="height: 330px;">
        	<table>
            	<thead>
                	<tr>
                    	<th class="date">日期</th>
                        <th class="week">ISBN</th>
                        <th class="leader">书名</th>
                        <th class="contact">价格</th>
                        <th class="remark">位置</th>
                        <th class="remark">数量</th>
                    </tr>
                </thead>
                <tbody>
				<foreach name="data.inlist" item="vo" key="k">
                	<tr>
                    	<td class="date">
						<?php
						$addtime = $vo["addtime"];
						$addtime = strtotime($addtime);
						echo date("m-d",$addtime);
						?>
						</td>
                        <td class="week">{$vo.isbn}</td>
                        <td class="leader">{$vo.bookname}</td>
                        <td class="contact">{$vo.price}</td>
                        <td class="remark">{$vo.location}</td>
						<td class="remark">{$vo.booknum}</td>
                    </tr>
                </foreach>   
					
                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="article half duty">
	<div class="wrap-r">
        <div class="title ue-clear">
            <h2>最近出库</h2>
            <a href="javascript:;" class="more">更多</a>
        </div>
        <div class="content" style="height: 330px;">
        	<table>
            	<thead>
                	<tr>
                    	<th class="date">日期</th>
                        <th class="week">ISBN</th>
                        <th class="leader">书名</th>
                        <th class="contact">价格</th>
                        <th class="remark">数量</th>
                    </tr>
                </thead>
                <tbody>
                	<foreach name="data.outlist" item="vo" key="k">
                	<tr>
                    	<td class="date">
						<?php
						$addtime = $vo["addtime"];
						$addtime = strtotime($addtime);
						echo date("m-d",$addtime);
						?>
						</td>
                        <td class="week">{$vo.isbn}</td>
                        <td class="leader">{$vo.bookname}</td>
                        <td class="contact">{$vo.price}</td>
                        <td class="remark">{$vo.location}</td>
						<td class="remark">{$vo.booknum}</td>
                    </tr>
                </foreach>   
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/jquery.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/layui/layui.all.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/common.js"></script>
<script type="text/javascript">
$(".title-list ul").on("click","li",function(){
	var aIndex = $(this).index();
	$(this).addClass("current").siblings().removeClass("current");
	$(".matter-content").removeClass("current").eq(aIndex).addClass("current");
});

$(".duty").find("tbody").find("tr:even").css("backgroundColor","#eff6fa");
</script>
</html>
